Skip to content

Feat/tag agent version user - #309

Merged
hannessolo merged 4 commits into
mainfrom
feat/tag-agent-version-user
Aug 4, 2026
Merged

Feat/tag agent version user#309
hannessolo merged 4 commits into
mainfrom
feat/tag-agent-version-user

Conversation

@hannessolo

Copy link
Copy Markdown
Contributor

Tag requests from MCP as agentic in history entry

hannessolo and others added 3 commits August 4, 2026 11:48
When a source write carries `x-da-initiator: mcp`, flag daCtx.users (after
the permission check) so the recorded version/audit user reads
"email (agent)". getUsersForMetadata appends the marker; collab sync is
unaffected since 'mcp' != 'collab'.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread src/storage/utils/version.js Outdated

return users.map((user) => ({ email: user.email }));
return users.map((user) => ({
email: user.isAgentic ? `${user.email} (agent)` : user.email,

@sharanyavinod sharanyavinod Aug 4, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannessolo Adapting the email string to include agent feels a bit counterintuitive to me. Could we instead just update the metadata to include the info that it is done by an agent similar to the isAgentic above, and then leave it up to the UI to interpret and display as needed? If we adapt the email like this, it would also complicate any UI scenarios that would require email as-is. Wdyt?

Keep the recorded author email clean and add a structured `isAgentic`
flag to the users JSON; the UI appends "(agent)" when present. Collapse
logic is unchanged, so agent and human edit sessions still group together.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hannessolo
hannessolo merged commit 11922fb into main Aug 4, 2026
6 checks passed
@hannessolo
hannessolo deleted the feat/tag-agent-version-user branch August 4, 2026 13:44
hannessolo added a commit that referenced this pull request Aug 4, 2026
Re-triggers the release that was skipped when #309 squash-merged without
a conventional `feat:` prefix (it landed as "Feat/tag agent version user").
No code change — the feature is already on main; this cuts the release.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
adobe-bot pushed a commit that referenced this pull request Aug 4, 2026
# [1.14.0](v1.13.6...v1.14.0) (2026-08-04)

### Features

* tag MCP-initiated writes as agent in version history ([#310](#310)) ([ae50c1b](ae50c1b)), closes [#309](#309)
@adobe-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants